package com.cskaoyan.app.mapper;

import com.cskaoyan.app.bean.po.MarketOrder;
import com.cskaoyan.app.bean.po.MarketOrderExample;
import com.cskaoyan.app.bean.vo.AdminOrderChannelVO;
import com.cskaoyan.app.bean.vo.orderVo.WeChatOrderListVO;
import com.cskaoyan.app.bean.vo.statVo.AdminStatOrderRow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketOrderMapper {
    long countByExample(MarketOrderExample example);

    int deleteByExample(MarketOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrder record);

    int insertSelective(MarketOrder record);

    List<MarketOrder> selectByExample(MarketOrderExample example);

    MarketOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByExample(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByPrimaryKeySelective(MarketOrder record);

    int updateByPrimaryKey(MarketOrder record);

    List<AdminOrderChannelVO> selectChannel();

    List<AdminStatOrderRow> orderCount();

    List<WeChatOrderListVO> listWeChat(@Param("showType") Integer showType, @Param("userid") Integer userid);

    Integer updateRefund(@Param("orderId") Integer orderId);

    Integer updateConfirm(@Param("orderId") Integer orderId, @Param("size") Short size);

    String ship(@Param("shipChannel") String shipChannel);


}